<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html -->
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <meta name="description" content="Mikron.CMS" />
        <meta name="Keywords" content="mikron cms orm php mysql" />
        <meta http-equiv="Pragma" content="no-cache" />
        <title>Администрирование</title>
        {{$HEADER}}
        <link rel="stylesheet" type="text/css" href="{{$MIKRON_DIRECTORY_WWW}}/templates/admin/style.css" />
        <link rel="stylesheet" type="text/css" href="{{$MIKRON_DIRECTORY_WWW}}/lib/jquery/modal/jqmodal.css" />
        <script type="text/javascript" language="javascript" src="{{$MIKRON_DIRECTORY_WWW}}/lib/jquery/jquery.js"></script>
        <script type="text/javascript" language="javascript" src="{{$MIKRON_DIRECTORY_WWW}}/lib/jquery/jquery.form.js"></script>
        <script type="text/javascript" language="javascript" src="{{$MIKRON_DIRECTORY_WWW}}/lib/jquery/modal/jqmodal.js"></script>
        <script type="text/javascript" language="javascript" src="{{$MIKRON_DIRECTORY_WWW}}/lib/mikron/mikron.js"></script>
    <script type="text/javascript" language="javascript"><!--
        // Получение объекта по id
        // От стандартного document.getElementById отличается только длиной.
        //function $(elemid) 
        //{ 
        //    return document.getElementById(elemid); 
        //}
        // Отправка формы по Ctrl Enter
        // <form onkeypress="ctrlEnter(event, this);">
        function ctrlEnter(event, formElem)
        {
            if((event.ctrlKey) && ((event.keyCode == 0xA)||(event.keyCode == 0xD)))
            {
                formElem.submit();
            }
        }
        // -->
    </script>
    <script type="text/javascript" language="javascript">
        // ожидаем загрузки всего документа
        $(document).ready(function()
        {
            // назначаем 'mikronForm' обрабатываемой формой и задаем ей простецкую функцию
            $('#mikronForm').ajaxForm(function() {
                alert("Сохранено!");
            });
        });
    </script>
        <!-- TinyMCE -->
        <script type="text/javascript" src="/mikron/lib/jscripts/tiny_mce/tiny_mce.js"></script>
        <script type="text/javascript" language="javascript">
            tinyMCE.init({
                // General options
                // mode : "textareas",
                mode : "exact",
                elements : "htmlarea,elm2",
                forced_root_block : false,
                force_p_newlines : 'false',
                remove_linebreaks : false,
                force_br_newlines : true,
                remove_trailing_nbsp : false,
                verify_html : false, 
                    
                theme : "advanced",
                plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups",

                // Theme options
                theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
                theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
                theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
                theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
                theme_advanced_toolbar_location : "top",
                theme_advanced_toolbar_align : "left",
                theme_advanced_statusbar_location : "bottom",
                theme_advanced_resizing : true,

                // Example word content CSS (should be your site CSS) this one removes paragraph margins
                content_css : "css/word.css",

                // Drop lists for link/image/media/template dialogs
                template_external_list_url : "lists/template_list.js",
                external_link_list_url : "lists/link_list.js",
                external_image_list_url : "lists/image_list.js",
                media_external_list_url : "lists/media_list.js",

                // Replace values for the template plugin
                template_replace_values : {
                    username : "Some User",
                    staffid : "991234"
                }
            });
        </script>
        <!-- /TinyMCE -->
    </head>
    <body xml:lang="en"> 
    
        <!-- demo
        <select id="item_select">
            <option value="1">One</option>
            <option value="2">Two</option>
        </select>
        <button onclick="$.mikron.select('#item_select').clear();
        $.mikron.select('#item_select').add('Hello!', 2009);
        $.mikron.select('#item_select').optionsFill('<options><option value=c:\\windows\\autoexec.bat>autoexec.bat</option><option value=c:\\windows\\explorer.exe>explorer.exe</option><option value=c:\\windows\\config.ini>config.ini</option></options>');">Clear</button>
        <script type="text/javascript">
            $(document).ready(function(){ 
                $("#item_select").change(function() 
                { 
                    alert($.mikron.select('#item_select').value());
                }); 
            });
        </script>
        demo -->

        <div style="padding: 0em; ">
            <table width="100%" cellpadding="0" cellspacing="0">
            <tr><td valign="top" class="adminbody">{{$BODY}}</td></tr>
            <tr><td valign="bottom"><hr /><!-- <!- GZipper_Stats -> -->ЗАО «Витакор»</td></tr>
            </table>
        </div>
    </body>
</html>